/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.investmentrecord.entity;

import com.jeeplus.modules.member.entity.Member;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 下架待复投记录Entity
 * @author w
 * @version 2021-04-02
 */
public class InvestmentRecord extends DataEntity<InvestmentRecord> {
	
	private static final long serialVersionUID = 1L;
	private Member member;		// 用户
	private Double price;		// 添加时单价
	private Integer freezingAmount;		// 待冻结数量
	private Integer positionAmount;		// 应持有数量
	private Integer roundingNumber;		// 轮数
	private Integer subAmount;		//待认购数量
	
	public InvestmentRecord() {
		super();
	}

	public InvestmentRecord(String id){
		super(id);
	}

	@ExcelField(title="用户", fieldType=Member.class, value="member.loginName", align=2, sort=1)
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}
	
	@ExcelField(title="添加时单价", align=2, sort=2)
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@ExcelField(title="待冻结数量", align=2, sort=3)
	public Integer getFreezingAmount() {
		return freezingAmount;
	}

	public void setFreezingAmount(Integer freezingAmount) {
		this.freezingAmount = freezingAmount;
	}
	
//	@ExcelField(title="应持有数量", align=2, sort=4)
	public Integer getPositionAmount() {
		return positionAmount;
	}

	public void setPositionAmount(Integer positionAmount) {
		this.positionAmount = positionAmount;
	}
	
	@ExcelField(title="轮数", align=2, sort=5)
	public Integer getRoundingNumber() {
		return roundingNumber;
	}

	public void setRoundingNumber(Integer roundingNumber) {
		this.roundingNumber = roundingNumber;
	}

	@ExcelField(title="待认购数量", align=2, sort=4)
	public Integer getSubAmount() {
		return subAmount;
	}

	public void setSubAmount(Integer subAmount) {
		this.subAmount = subAmount;
	}
}